package com.SSH_Test.action;

import java.util.Map;

import javax.annotation.Resource;

import org.apache.struts2.interceptor.SessionAware;
import org.springframework.stereotype.Component;

import com.SSH_Test.dao.Userdao;
import com.opensymphony.xwork2.ActionSupport;
@Component("birtction")
public class birt_action extends ActionSupport implements SessionAware{
	private Map<String,Object> session;
	private Userdao ud;
	
	public Userdao getUd() {
		return ud;
	}
	@Resource(name="userdao")
	public void setUd(Userdao ud) {
		this.ud = ud;
	}
	public String exectue(){
		session.put("list", ud.listUser());
		return SUCCESS;
	}
	public void setSession(Map<String, Object> session) {
		this.session=session;
	}

}
